package com.lihua.newideas;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableGlobalMethodSecurity(securedEnabled = true , prePostEnabled = true) // 开启授权注解支持
public class NewIdeasApplication {

    public static void main(String[] args) {
        SpringApplication.run(NewIdeasApplication.class, args);
    }

}
